package splash;

import java.awt.Graphics2D;
import java.awt.SplashScreen;

public class SpScreen implements Runnable {

	@Override
	public void run() {
		
		final SplashScreen splash = SplashScreen.getSplashScreen();
        if (splash == null) {
            System.out.println("SplashScreen.getSplashScreen() returned null");
            return;
        }
        
        Graphics2D g = splash.createGraphics();
       
        if (g == null) {
            System.out.println("g is null");
            return;
        }
        
        try {
            Thread.sleep(5000);
        }
            catch(InterruptedException e) {
        }
        
        splash.close();

	}

}
